package com.link.base.base.approval.dao.mybatis.mapper;

import com.link.base.base.approval.model.FlowUser;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.model.CallParam;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/8 15:48
 * @version 1.0
 */

public interface FlowUserMapper extends BasicMapper<FlowUser> {

    /**
     * 查询列表
     *
     * @param flowId
     * @return
     * @throws Exception
     */
    public List<FlowUser> queryByFLowId(Long flowId) throws Exception;

    /**
     * 根据审批流，删除待审批人信息
     *
     * @param flowUser
     * @throws Exception
     */
    public void deleteByFlowId(FlowUser flowUser) throws Exception;

    /**
     * 更新已读标记
     * @param entity
     * @throws Exception
     */
    public void readFlagUpdate(FlowUser entity) throws Exception;

    /**
     * 根据审批节点Id，用户Id。查询用户列表
     *
     * @param record
     * @throws Exception
     */
    public void callApprovalNodeUserList(CallParam record) throws Exception;
}
